package org.sipsl.gisystems.gentest.rte.util;

import java.util.Map;

public abstract class Params {
	
	private Map<String, String> params;
	private String MSISDN;
	public String getNOA() {
		return NOA;
	}

	//int = 4, nat = 3, unk =2
	//rating group home = 16
	//rating group roam = 17

	
	private String NOA;
	private String BMSISDN;
	private String BIMSI;
	private String BNOA;
	private String IMSI;
	private String BALANCE;
	private String DELAY;

	Params(Map<String, String> params){
		this.params = params;
		setMSISDN(getParamMap().get("MSISDN"));
		setIMSI(getParamMap().get("IMSI") == null ? "" : getParamMap().get("IMSI"));
		setBALANCE(getParamMap().get("BALANCE"));		
		setBMSISDN(getParamMap().get("BMSISDN"));
		setBIMSI(getParamMap().get("BIMSI") == null ? "" : getParamMap().get("BIMSI"));	
	}
	
	public Map<String, String> getParamMap(){
		return params;
	}
	
	public String getGeneric(String s){
		return getParamMap().get(s);
	}

	
	public String getMSISDN() {
		return MSISDN;
	}

	public void setMSISDN(String mSISDN) {
		MSISDN = mSISDN;
	}


	public String getIMSI() {
		return IMSI;
	}


	public void setIMSI(String iMSI) {
		IMSI = iMSI;
	}


	public String getBALANCE() {
		return BALANCE;
	}


	public void setBALANCE(String bALANCE) {
		BALANCE = bALANCE;
	}

	public String getDELAY() {
		return DELAY;
	}

	public void setDELAY(String dELAY) {
		DELAY = dELAY;
	}
	public void setNOA(String nOA) {
		NOA = (nOA.compareTo("unk") == 0 ? "2" : nOA.compareTo("nat") == 0 ? "3" : "4");;
	}

	public String getBMSISDN() {
		return BMSISDN;
	}

	public void setBMSISDN(String bMSISDN) {
		BMSISDN = bMSISDN;
	}

	public String getBIMSI() {
		return BIMSI;
	}

	public void setBIMSI(String bIMSI) {
		BIMSI = bIMSI;
	}

	public String getBNOA() {
		return BNOA;
	}

	public void setBNOA(String bNOA) {
		BNOA = (bNOA.compareTo("unk") == 0 ? "2" : bNOA.compareTo("nat") == 0 ? "3" : "4");;
	}

}
